home *** CD-ROM | disk | FTP | other *** search
- package sun.beans.editors;
-
- import java.beans.PropertyEditorSupport;
-
- public class ShortEditor extends NumberEditor {
- public String getJavaInitializationString() {
- return "((short)" + ((PropertyEditorSupport)this).getValue() + ")";
- }
-
- public void setAsText(String text) throws IllegalArgumentException {
- ((PropertyEditorSupport)this).setValue(Short.valueOf(text));
- }
- }
-